<html>
<head>
    <meta charset="UTF-8">
    <title>支付成功</title>
</head>
<body>
<div>
    支付成功
</div>
<div>
    <a id="url" href="http://localhost:8080/index"></a>
</div>
</body>
<script>
    window.onload = function (){
        setTimeout(function (){
            let a = document.getElementById("url")
            a.click()
        },1000)
    }


</script>
</html>